import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw = {
  path: 'customer',
  name: 'customer',
  component: ()=>import('@/layout/components/Parent.vue'),
  meta: {
    title: '客服管理',
    icon: 'ChatDotRound'
  },
  children: [
     {
      path: 'list',
      name: 'customer_list',
      component: () => import('@/views/customer/list/list.vue'),
      meta: {
        title: '客服列表',
        requiresAuth: true,
        keepAlive: true,
      },
    },
    {
      path: 'chat',
      name: 'customer_chat',
      component: () => import('@/views/customer/chat/chat.vue'),
      meta: {
        title: '客服聊天',
        requiresAuth: true,
        keepAlive: true,
      },

    },
  ],
};

export default routes;
